package org.apogee.mil.client.main.pages.admin;

import org.apogee.mil.client.main.pages.admin.forms.widgets.GroupOptions;
import org.apogee.mil.client.main.pages.admin.forms.widgets.TestOptions;
import org.apogee.mil.client.main.pages.admin.forms.widgets.TrainerOptions;
import org.apogee.mil.client.main.pages.admin.forms.widgets.UserOptions;
import com.extjs.gxt.ui.client.widget.LayoutContainer;
import com.extjs.gxt.ui.client.widget.form.FormPanel;
import com.extjs.gxt.ui.client.widget.layout.FitLayout;
import com.google.gwt.user.client.Element;

public class AdminPanel extends LayoutContainer {
	
	@Override
	public void onRender(Element parent, int index) {
		super.onRender(parent, index);
		
		setLayout(new FitLayout());
		setWidth(400);
		setHeight(400);
		
		FormPanel fp = new FormPanel();
		fp.setHeading("Administration");
		fp.setBorders(true);
		fp.setFrame(true);
		
		fp.add(new UserOptions().asWidget());
		fp.add(new TestOptions().asWidget());
		fp.add(new GroupOptions().asWidget());
		fp.add(new TrainerOptions().asWidget());
		
		add(fp);
	}

}
